import * as api from './httpRequests.js';


export const getType = () => {
  return api.getRequest(`/system/dict/data/type/appVersion`)
};


//微信登录 /auth/login

export const loginAuth = (data) => {
  return api.postRequest(`/auth/login`, data)
}


// 创建订单 /order/create
export const createOrder = (data) => {
  return api.postRequest(`/order/create`, data)
}

// 支付订单 /wxpay/orderNotify

export const orderNotify = (data) => {
  return api.postRequest(`/wxpay/orderNotify`, data)
}


// 获取图片历史 /face/pictures


// 生成图片 /face/fusion
export const fusionImg = (data) => {
  return api.postRequest(`/face/fusion`, data)
}

// 获取任务进度 /task

export const task = (data) => {
  return api.getRequest(`/task`, data)
}

 
// 获取历史照片 /face/pictures

export const pictures = (data) => {
  return api.postRequest(`/face/pictures`, data)
}